home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 1_0-2 / EARTHPLO / EP_DOEDI.C < prev    next >
C/C++ Source or Header  |  1987-08-15  |  402b  |  27 lines

  1. #include "ep.const.h"
  2. #include "ep.extern.h"
  3. #include "DialogMgr.h"
  4.  
  5. DoEditMenu (item)
  6. int        item;
  7. {
  8. long    result;
  9.  
  10.     switch (item) { 
  11.     case 3: /* Cut */
  12.     case 4: /* Copy */
  13.         ZeroScrap();
  14.         HLock(ePict);
  15.         result = PutScrap(GetHandleSize(ePict),'PICT',*ePict);
  16.         HUnlock(ePict);
  17.         result = UnloadScrap();
  18.          break;
  19.      case 6: /* clear */
  20.          ZeroScrap();
  21.          break;
  22.      default:
  23.          SysBeep(3);
  24.          break;
  25.     }
  26. }
  27.